﻿@{
    ViewBag.Title = "Welcome to the Stock Predictor!";
}
@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>@ViewBag.Title</h1>
                <h2>Not a Member?  Join for free, @Html.ActionLink("Here", "Contact", "Home")</h2>
                <div class="stock-search">
                    @Html.Label("searchSymbol", "Enter stock symbol")
                    @Html.TextBox("searchSymbol")
                    <script>$('[name=searchSymbol]').keypress(function (e) { if(e.which==13)$('.current-stocks-btn').click(); })</script>
                    <input type="button" class="current-stocks-btn" onclick="javascript:chartHistoricalData('Home', $('[name=searchSymbol]').val(),'Single')" value="Update" />	
	            </div>    
            </hgroup>
        </div>
    </section>
}

<div id="chart" style="height:auto; min-width: inherit"></div>
<script>chartHistoricalData('Home', 'MSFT', 'Single');</script>

